package com.cy.pj.modules.entity;

import com.cy.pj.common.web.domain.TreeEntity;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 类目对象 fz_category
 *
 * @author kiven
 * @date 2023-02-09
 */
public class Category extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 店铺id */
    //@Excel(name = "店铺id")
    private Long shopId;

    /** 类目名称 */
    //@Excel(name = "类目名称")
    private String name;

    /** 类目关键字，以JSON数组格式 */
    //@Excel(name = "类目关键字，以JSON数组格式")
    private String keywords;

    /** 类目广告语介绍 */
    //@Excel(name = "类目广告语介绍")
    private String description;

    /** 父类目ID */
    //@Excel(name = "父类目ID")
    private Long parentId;

    /** 类目图标 */
    //@Excel(name = "类目图标")
    private String iconUrl;

    /** 类目图片 */
    //@Excel(name = "类目图片")
    private String picUrl;

    /**  */
    //@Excel(name = "")
    private String level;

    /** 排序 */
    //@Excel(name = "排序")
    private Integer sortOrder;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    //@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    /** 逻辑删除 */
    //@Excel(name = "逻辑删除")
    private Integer deleted;

    @Override
    public String toString() {
        return "Category{" +
                "id=" + id +
                ", shopId=" + shopId +
                ", name='" + name + '\'' +
                ", keywords='" + keywords + '\'' +
                ", description='" + description + '\'' +
                ", parentId=" + parentId +
                ", iconUrl='" + iconUrl + '\'' +
                ", picUrl='" + picUrl + '\'' +
                ", level='" + level + '\'' +
                ", sortOrder=" + sortOrder +
                ", addTime=" + addTime +
                ", deleted=" + deleted +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public Long getParentId() {
        return parentId;
    }

    @Override
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }
}
